package www.lagou.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author  sjp
 * @date  2021/5/8 13:10
 * @description 交易记录
 */
public class Transaction implements Serializable {
    private static final long serialVersionUID = 5899627507678586016L;
    private int id;

    /**
     * 交易卡号
     */
    private String cardid;

    /**
     * 交易类型
     */
    private String tratype;

    /**
     * 交易金额
     */
    private double tramoney;

    /**
     * 交易日期
     */
    private Date tradate;

    public Transaction() {
    }

    public Transaction(int id, String cardid, String tratype, double tramoney, Date tradate) {
        this.id = id;
        this.cardid = cardid;
        this.tratype = tratype;
        this.tramoney = tramoney;
        this.tradate = tradate;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCardid() {
        return cardid;
    }

    public void setCardid(String cardid) {
        this.cardid = cardid;
    }

    public String getTratype() {
        return tratype;
    }

    public void setTratype(String tratype) {
        this.tratype = tratype;
    }

    public double getTramoney() {
        return tramoney;
    }

    public void setTramoney(double tramoney) {
        this.tramoney = tramoney;
    }

    public Date getTradate() {
        return tradate;
    }

    public void setTradate(Date tradate) {
        this.tradate = tradate;
    }

    @Override
    public String toString() {
        return "Transaction{" +
                "id=" + id +
                ", cardid='" + cardid + '\'' +
                ", tratype='" + tratype + '\'' +
                ", tramoney=" + tramoney +
                ", tradate=" + tradate +
                '}';
    }
}
